package cn.iocoder.yudao.module.wms.controller.admin.rdrecord08.vo;

import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
import cn.iocoder.yudao.module.wms.dal.dataobject.person.PersonDO;
import cn.iocoder.yudao.module.wms.dal.dataobject.warehouse.WarehouseDO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 其他入库主 Response VO")
@Data
@ExcelIgnoreUnannotated
public class Rdrecord08RespVO implements VO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "22958")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "流水号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("流水号")
    private String serialNumber;

    @Schema(description = "业务员id", example = "22957")
    @Trans(type = TransType.SIMPLE, target = PersonDO.class, fields = "name", ref = "personName")
    private Long personId;

    @Schema(description = "业务员", example = "22957")
    @ExcelProperty("业务员")
    private String personName;

    @Schema(description = "部门id", example = "18239")
    @Trans(type = TransType.SIMPLE, target = DeptDO.class, fields = "name", ref = "deptName")
    private Long deptId;

    @Schema(description = "部门", example = "18239")
    @ExcelProperty("部门")
    private String deptName;

    @Schema(description = "仓库id", example = "1906")
    @Trans(type = TransType.SIMPLE, target = WarehouseDO.class, fields = "name", ref = "warehouseName")
    private Long warehouseId;

    @Schema(description = "仓库", example = "1906")
    @ExcelProperty("仓库")
    private String warehouseName;

    @Schema(description = "订单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单日期")
    private LocalDateTime orderDate;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建人")
    @Trans(type = TransType.SIMPLE, target = AdminUserDO.class, fields = "nickname", ref = "creatorName")
    private String creator;

    @Schema(description = "创建人名称")
    @ExcelProperty("创建人")
    private String creatorName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "审核人")
    @Trans(type = TransType.SIMPLE, target = AdminUserDO.class, fields = "nickname", ref = "auditorName")
    private String auditor;

    @Schema(description = "审核人名称")
    @ExcelProperty("审核人")
    private String auditorName;

    @Schema(description = "审核时间")
    @ExcelProperty("审核时间")
    private LocalDateTime auditTime;

    @Schema(description = "状态")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "流程实例id")
    private String processInstanceId;

}